<%   @dataevent = Event.find_by_id(@eventparticipant.event_idf) %>
<%   @dataparticipant = Participant.find_by_id(@eventparticipant.participant_idf) %>
<tr valign="top">
    <td height="40" align="left" class="dato" background="/images/topHeader.gif" colspan="4"><%= @dataevent.name %> -- <%= @dataevent.eventstart.strftime("%d-%b") %></td>
  </tr>
    <tr>
     <td colspan="4" align="center" background="/images/vg.jpg"><span class="subdatos"><%= @dataparticipant.name %></td>
  </tr>
    <tr><td>&nbsp;</td></tr>
	<td width="65"><%= image_tag(@dataparticipant.image,  :size => "60x60", :align => "middle" ) %></td>
   
    <table>

<% form_for(@eventparticipant) do |f| %>
<p>
<%= f.label :proportion, 'Proporcion:' %><br />
<%= f.text_field :proportion %>
</p>
<p>
<%= f.label :score, 'Score:' %><br />
<%= f.text_field :score %>
</p>
<p>
<%= f.label :casavisitante, 'Casa o Visitante:' %><br />
<%= f.text_field :homevisitant %>
</p>
  <p>
    <%= f.submit 'Modificar' %>
  </p>
<% end %>

<%= link_to 'Mostrar', @eventparticipant %> |
<%= link_to 'Regresar', eventparticipants_path %>
